<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc><{$smarty.const.XOOPS_URL}>/</loc>
<lastmod><{$lastmod}></lastmod>
<priority>1.0</priority>
</url>

<{foreach item=block from=$sitemap }>
  <{foreach item=sub from=$block}>

<{if !($sub.home==1 && $sub.depth==0) }>
<{if $sub.url|strstr:"$xoops_url"}>
<url>
<loc><{$sub.url}></loc>
<{if $sub.depth == 0}><priority>0.9</priority><{/if}>
<{if $sub.depth == 1}><priority>0.8</priority><{/if}>
<{if $sub.depth == 2}><priority>0.7</priority><{/if}>
<{if $sub.depth == 3}><priority>0.6</priority><{/if}>
<{if $sub.depth > 3 }><priority>0.5</priority><{/if}>
</url>
<{/if}>
<{/if}>

  <{/foreach}>
<{/foreach}>

</urlset>
